package com.doyens.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

@Data
public class Teacher implements Serializable {
    @TableId(type = IdType.AUTO)
  private Integer tid;
  private String tname;
  private String jobtitle;
  private Integer status;
  public String getStatusStr(){
       return status==1?"启用":"禁用";
  }
  private Integer pid;
  private Integer cid;
  private Integer did;
  private Date tdate;
}
